package com.workManager.controller;

import com.wordnik.swagger.annotations.ApiOperation;
import com.workManager.base.BaseController;
import com.workManager.pojo.TdMenu;
import org.springframework.context.annotation.Conditional;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by Thinkpad on 2017/3/3 0003.
 */
@Controller
@RequestMapping("/permission")
public class PermissionController extends BaseController {

    @ApiOperation(value="权限添加",notes = "权限添加")
    @RequestMapping(value = "/add",method = RequestMethod.POST)
    public  Object add(HttpServletRequest request, @RequestBody TdMenu menu){
        ModelMap modelMap = new ModelMap();

        return  setSuccessModelMap(modelMap);
    }

    @ApiOperation(value="权限添加",notes = "权限添加")
    @RequestMapping(value = "/query",method = RequestMethod.POST)
    public  Object query(HttpServletRequest request, @RequestBody TdMenu menu){
        ModelMap modelMap = new ModelMap();

        return  setSuccessModelMap(modelMap);
    }


}
